package cn.sw.common.http;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @Description: 业务异常SSB
 * @Author: 张众森
 * @Date: 2025/5/10
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class HttpSsbBizException extends RuntimeException {
    // 定义异常代码，默认为500
    private String code = "500";
    // 定义异常信息
    private String message;

    // 构造函数，传入异常信息
    public HttpSsbBizException(String message) {
        this.message = message;
    }
}